package com.sunnada.edu.system.org.service;

import java.util.HashMap;
import java.util.List;
import com.sunnada.edu.system.pub.common.AppContext;
import com.sunnada.edu.system.pub.dao.PubDao;

public class OrgMethods {

	@SuppressWarnings("rawtypes")
	public static List getSchoolListByOrgcode(HashMap<String, String> params) {
		PubDao dao = AppContext.getInstance().getPubDao();
		String recIds = params.get("recIds");
		String sql = "  select * from t_school where AREA_CODE in (select area_code from s_sysarea  s where rec_id in(" + recIds + ") )";
		return dao.selectList(sql);
	}

}
